package com.foo.CR;

/**
 * Created by IntelliJ IDEA.
 * User: Tejas
 * Date: 12/30/10
 * Time: 3:07 PM
 * To change this template use File | Settings | File Templates.
 */
public class Utils {

    public static String cleanWifiID(String wifiID) {
        int len = wifiID.length();
        if(wifiID.charAt(0) == '\"' && wifiID.charAt(len - 1) == '\"')
        {
            wifiID = wifiID.substring(1, len - 1);
        }
        return wifiID;
    }

    public static String removeProfFromWifiID(String rowText)
    {
        int idx = rowText.indexOf("[");
        if (idx != -1)
            return rowText.substring(0, idx);

        return rowText;
    }
}
